package com.ssyt.hiringtwo.entity;

/**
 * 用户（求职者、公司、管理员）
 *
 */
public class UserEntity {

    public static final int ROLE_TALENT = 1;
    public static final int ROLE_COMPANY = 2;
    public static final int ROLE_ADMIN = 3;

    public static final int ACCOUNT_INVALID = 1;
    public static final int ACCOUNT_VALID = 2;

    private int id;
    private String email;
    private String password;
    private String username;
    private String phone;
    private int roleType;
    private int isActive;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getRoleType() {
        return roleType;
    }

    public void setRoleType(int roleType) {
        this.roleType = roleType;
    }

    public int getIsActive() {
        return isActive;
    }

    public void setIsActive(int isActive) {
        this.isActive = isActive;
    }
    


	@Override
    public String toString() {
        return "UserEntity [id=" + id + ", email=" + email + ", password=" + password + ", username=" + username + ", phone=" + phone + ", roleType=" + roleType + ", isActive=" + isActive + "]";
    }

}
